import React, { PureComponent } from 'react';
import { Input, Button, Icon } from 'antd';

export default class DemoComponent extends PureComponent {
  state = {
  };
  
  handleChange = (e) => {
    const { value } = e.target;
    this.setState({ value });
  }

  render() {
    const { value,handleChange } = this.props;

    return (
      <div >
        往下：{value}
        <br />
        往上：<Input onChange={handleChange} />
      </div>
    );
  }
}
